import com.zto.sch.cycle.A;
import com.zto.sch.cycle.B;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @program: javatest
 * @description:
 * @author: sch
 * @create: 2020-11-18 20:28
 **/
public class TestCycle {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
        A a = (A)context.getBean("a");
        B b = (B)context.getBean("b");
        a.test();
        b.test();
    }
}
